package top.frsf.pattern.c_behavioral.a_strategy.very;

import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

/**
 * @author He Kuntao
 * @since 2024/11/28 16:24
 */
@Service
public class TestService {

    @Resource
    private Map<String, BaseHandler> handlerContext = new HashMap<>();

    @PostConstruct
    public void init() {
        for (Map.Entry<String, BaseHandler> entry : handlerContext.entrySet()) {
            System.out.println(entry.getKey() + ":" + entry.getValue());
        }
    }
}
